package com.lx.zookeeper;

import org.apache.zookeeper.ZooKeeper;
import org.apache.zookeeper.data.Stat;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Description:
 * Copyright:   Copyright (c)2019
 * Company:     zefu
 *
 * @author: 张李鑫
 * @version: 1.0
 * Create at:   2021-11-25 11:12:29
 * <p>
 * Modification History:
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2021-11-25     张李鑫                     1.0         1.0 Version
 */
public class ZookeeperTest {

    private static Logger logger = LoggerFactory.getLogger(ZookeeperTest.class);

    ZooKeeper zk;


//    @Before
//    public void con() {
//        zk = ZookeeperUtils.getZk();
//    }
//
//    @After
//    public void close() {
//        try {
//            zk.close();
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//            logger.error("zk close error");
//        }
//    }
//
//
//    @Test
//    public void getConf() {
//        WatchCallBack watchCallBack = new WatchCallBack();
//        watchCallBack.setZk(zk);
//        zk.exists("/zlx", watchCallBack, watchCallBack, "abc");
//    }


}
